home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / News / Alexandra.0.82 / Source / Decoding.subproj / decode.h next >
Encoding:
C/C++ Source or Header  |  1996-01-30  |  2.0 KB  |  81 lines

  1. /* $Id: decode.h,v 1.1.1.1 1996/01/31 13:44:34 alex Exp $
  2.  *
  3.  * $Log: decode.h,v $
  4.  * Revision 1.1.1.1  1996/01/31 13:44:34  alex
  5.  * Importierte Source, Version 0.82 von Constantin
  6.  *
  7.  * Revision 4.4  1991/09/09  20:27:37  sob
  8.  * release 4.4
  9.  *
  10.  *
  11.  * 
  12.  */
  13.  
  14. /* This software is Copyright 1991 by Stan Barber. 
  15.  *
  16.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  17.  * use this software as long as: there is no monetary profit gained
  18.  * specifically from the use or reproduction of this software, it is not
  19.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  20.  * included prominently in any copy made. 
  21.  *
  22.  * The author make no claims as to the fitness or correctness of this software
  23.  * for any use whatsoever, and it is provided as is. Any use of this software
  24.  * is at the user's own risk. 
  25.  */
  26.  
  27. #include <stdio.h>
  28. #include <streams/streams.h>
  29.  
  30. #ifndef BOOL
  31. #define BOOL char
  32. #endif
  33.  
  34. /* defines stolen from common.h */
  35. #define LBUFLEN 1024
  36.  
  37. #ifndef FOPEN_RB
  38. #   define FOPEN_RB "r"
  39. #endif
  40. #ifndef FOPEN_WB
  41. #   define FOPEN_WB "w"
  42. #endif
  43.  
  44. #define Nullch NULL
  45. #define Nullfp NULL
  46.  
  47. #define    NO_ADVANCE        0x10
  48.  
  49. #define    FIND_BEGIN        0x01
  50. #define    AFTER_ERROR_FIND_BEGIN    0x02
  51. #define    DECODE_TEXT        0x03
  52. #define    SKIP_TRAILING           (0x04 | NO_ADVANCE)
  53. #define    SKIP_LEADING        0x05
  54. #define    FOUND_END           (0x06 | NO_ADVANCE)
  55. #define DECODE_ERROR           (0x07 | NO_ADVANCE)
  56. #define OTHER_ERROR           (0x08 | NO_ADVANCE)
  57. #define NEW_BEGIN           (0x09 | NO_ADVANCE)
  58.  
  59. //EXT FILE *decode_fp INIT(NULL);
  60. //EXT char decode_fname[MAXFILENAME];
  61. //EXT char decode_dest[MAXFILENAME];
  62. //EXT int decode_type;
  63.  
  64. //void decode_init ANSI((void));
  65. void decode_end(void);
  66.  
  67. // Getting/setting place where decoded files are put. If it
  68. // is invalid then the decoding will always fail.
  69. const char* decodeDepositPathname();
  70. void setDecodeDepositPathname(const char* aPathname);
  71.  
  72. void uud_start (void);
  73. int uudecode (NXStream *);
  74. int uudecode_state();
  75.  
  76. //void unship_init ANSI((void));
  77. //int unship ANSI((FILE *));
  78.  
  79. #define UUDECODE 0
  80. #define UNSHIP   1
  81.